home *** CD-ROM | disk | FTP | other *** search
/ Interactive Media Design Review 1999 / Interactive Media Design Review 1999.iso / pc / allfiles / move / move.dir / 00048_Script_48 < prev    next >
Text File  |  1999-03-05  |  5KB  |  174 lines

  1. on exitFrame
  2.   global currentproject
  3.   
  4.   
  5.   
  6.   --scrolling text thing 
  7.   if the loch of sprite 4 < -610 then
  8.     set the loch of sprite 4 = 1030
  9.     set the locV of sprite 4 = random(30)+16
  10.   else if the loch of sprite 4 > 1030 then
  11.     set the loch of sprite 4 = -610
  12.   end if
  13.   
  14.   if the mouseH > 300 then
  15.     set the locH of sprite 4 = the loch of sprite 4 - (the mouseh)/100
  16.   else
  17.     set the locH of sprite 4 = the loch of sprite 4 + (400 - the mouseh)/100
  18.   end if
  19.   
  20.   --scroll horiz
  21.   if the locH of sprite 3 < -1024 then
  22.     set the loch of sprite 3 = 1024
  23.     set the locV of sprite 3 = random(24)+12
  24.   else
  25.     set the loch of sprite 3 = the loch of sprite 3 - 2
  26.   end if
  27.   
  28.   if the locH of sprite 5 >= 1024 then
  29.     set the loch of sprite 5 = -700
  30.   else
  31.     set the loch of sprite 5 = the loch of sprite 5 + 1
  32.   end if
  33.   
  34.   --pixels+paper
  35.   if the locH of sprite 6 < -650 then
  36.     set the loch of sprite 6 = 1024
  37.   else
  38.     set the loch of sprite 6 = the loch of sprite 6 - 4
  39.   end if
  40.   
  41.   --pixels+paper
  42.   if the locH of sprite 7 > 1024 then
  43.     set the loch of sprite 7 = -850
  44.   else
  45.     set the loch of sprite 7 = the loch of sprite 7 + 3
  46.   end if
  47.   
  48.   if the locH of sprite 8 >= 1024 then
  49.     set the loch of sprite 8 = -930
  50.     set the locV of sprite 8 = random(45)+12
  51.   else if the locH of sprite 8 < -930 then
  52.     set the loch of sprite 8 = 1024
  53.   end if
  54.   
  55.   if the mouseH > 400 then
  56.     set the loch of sprite 8 = the loch of sprite 8 + the mouseh/100
  57.     
  58.   else
  59.     set the loch of sprite 8 = the loch of sprite 8 - (600-the mouseh)/100
  60.   end if
  61.   
  62.   --MESSAGE
  63.   
  64.   if the locH of sprite 10 < -930 then
  65.     global currentmsg
  66.     if currentmsg < the number of lines in field "msgsource" then
  67.       set currentmsg = currentmsg + 1
  68.     else
  69.       set currentmsg = 1
  70.     end if
  71.     set the member of sprite 10 = member string(line currentmsg of field "msgsource")
  72.     --set the text of field "msg" = line currentmsg of field "msgsource"
  73.     set the locH of sprite 10 = 800
  74.     set the locV of sprite 10 = random(20) + 531
  75.   end if
  76.   
  77.   set the locH of sprite 10 = the locH of sprite 10 - 3
  78.   
  79.   
  80.   
  81.   --hilite the current project button
  82.   set the locH of sprite 21 = the locH of sprite currentproject
  83.   
  84.   --check mouseposition
  85.   if the mousev < 531 then
  86.     set the locH of sprite 21 = -50
  87.     go "loop1"
  88.   else
  89.     go the frame
  90.   end if
  91.   
  92.   
  93.   
  94.   -- scroll off page
  95.   if the mouseH > 550 then
  96.     set the loch of sprite 18 = the locH of sprite 18 - the mouseH/100
  97.   else if the mouseH < 20 then
  98.     set the loch of sprite 18 = the locH of sprite 18 + (20-the mouseH)/5
  99.   else
  100.     set the loch of sprite 18 = the mouseh * -1
  101.     
  102.   end if
  103.   
  104.   
  105.   --change button positions
  106.   repeat with j = 59 to 79
  107.     --the formula:
  108.     --set the locH of sprite j = the locH of sprite 18 + the initial locH of sprite 59 + (j-59)* the distance between sprites' locH
  109.     set the locH of sprite j = the locH of sprite 18 + 63 + (j-59)*48
  110.   end repeat
  111.   
  112.   
  113.   
  114.   
  115.   --move the mousedown sprite off stage
  116.   --set the locH of sprite 21 = -50
  117.   
  118.   -- show the rollover sprite
  119.   if rollover(59) then
  120.     showrollover 59
  121.   else if rollover(60) then
  122.     showrollover 60
  123.   else if rollover(61) then
  124.     showrollover 61
  125.   else if rollover(62) then
  126.     showrollover 62
  127.   else if rollover(62) then
  128.     showrollover 62
  129.   else if rollover(63) then
  130.     showrollover 63
  131.   else if rollover(64) then
  132.     showrollover 64
  133.   else if rollover(65) then
  134.     showrollover 65
  135.   else if rollover(66) then
  136.     showrollover 66
  137.   else if rollover(67) then
  138.     showrollover 67
  139.   else if rollover(68) then
  140.     showrollover 68
  141.   else if rollover(69) then
  142.     showrollover 69
  143.   else if rollover(70) then
  144.     showrollover 70
  145.   else if rollover(71) then
  146.     showrollover 71
  147.   else if rollover(72) then
  148.     showrollover 72
  149.   else if rollover(73) then
  150.     showrollover 73
  151.   else if rollover(74) then
  152.     showrollover 74
  153.   else if rollover(75) then
  154.     showrollover 75
  155.   else if rollover(76) then
  156.     showrollover 76
  157.   else if rollover(77) then
  158.     showrollover 77
  159.   else if rollover(78) then
  160.     showrollover 78
  161.   else if rollover(79) then
  162.     showrollover 79
  163.     
  164.     
  165.   else
  166.     set the locH of sprite 20 = -50
  167.     set the locH of sprite 21 = -50
  168.     --set the text of the client/project field to blank
  169.     set the member of sprite 105 = line 58 of field "project"
  170.   end if
  171.   
  172.   
  173.   
  174. end